package com.sbeam.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sbeam.pojo.User;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface UserMapper extends BaseMapper<User> {
    @Select("select * from user where username=#{username}")
    User getUserInfo(String username);

    @Update("update user set points=#{points},credits=#{credits},ordergame=#{ordergame},updated=#{updated} where id=#{id}")
    int updateUserGames(User user);

}
